package router

import (
	"api/handler"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	api := r.Group("/api")
	{
		video := api.Group("/video")
		{
			video.POST("/add", handler.Add)
			video.POST("/update", handler.Update)
			video.GET("/list", handler.List)
		}
	}
}
